package com.example.demo.rocketmq;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author lance@oigcn.com
 * @version 1.0
 * @description
 * @date 2021-04-12 17:00
 **/
@RestController
public class IndexController {

    @Autowired
    OrderProducer orderProducer;

    @GetMapping("/send")
    public String send(){
        orderProducer.createOrder();

        return "success";
    }
}
